﻿/*
·´`·.¸.»------------------------------------------------------------ë·´`·.¸.»
        File: MyImage.cs
        Project: Themaopdracht 7
        Author: Felix Mann

        Description:
        This is a dialog that shows all the log messages that have
        been logged by using addLine. It provides a 'Hide' and 'Clear' 
        button.
·´`·.¸.»------------------------------------------------------------ë·´`·.¸.»
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace THO7_Team8
{
    public partial class ConsoleViewerDialog : Form
    {
        public ConsoleViewerDialog()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            listBox1.Items.Clear();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
        }
        public void addLine(String text)
        {
            listBox1.Items.Add(text);
            listBox1.SelectedIndex = listBox1.Items.Count - 1;
        }
    }
}
